//
//  HomePageFootView.m
//  LastTemp
//
//  Created by dllo on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "HomePageFootView.h"

@implementation HomePageFootView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addFootView];
    }
    return self;
}

- (void)addFootView
{
    self.bigView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    [self addSubview:self.bigView];
    [_bigView release];
    self.bigView.backgroundColor = [UIColor clearColor];
    
    
    
    
    
    self.imageViewOne = [[UIImageView alloc] initWithFrame:CGRectMake(15, 270, self.bigView.frame.size.width/3-40, self.bigView.frame.size.width/3-40)];
    [self.bigView addSubview:self.imageViewOne];
    [_imageViewOne release];
//    self.imageViewOne.layer.cornerRadius = 10;
    self.imageViewOne.clipsToBounds = YES;
 
    self.labelOne = [[UILabel alloc] initWithFrame:CGRectMake(15, 270+self.bigView.frame.size.width/3-40, self.bigView.frame.size.width/3-40, 15)];
    self.labelOne.font = [UIFont systemFontOfSize:13];
    [self.bigView addSubview:self.labelOne];
    [_labelOne release];
    
    self.buttonOne = [UIButton buttonWithType:UIButtonTypeSystem];
    [self.bigView addSubview:self.buttonOne];
    self.buttonOne.frame = CGRectMake(15, 270, self.bigView.frame.size.width/3-40, 80);
//    self.buttonOne.backgroundColor = [UIColor blueColor];
    
    
    
    
    self.imageViewTwo = [[UIImageView alloc] initWithFrame:CGRectMake(self.bigView.frame.size.width/3+15, 270, self.bigView.frame.size.width/3-40, self.bigView.frame.size.width/3-40)];
    [self.bigView addSubview:self.imageViewTwo];
    [_imageViewTwo release];
    self.imageViewTwo.backgroundColor = [UIColor redColor];
//    self.imageViewTwo.layer.cornerRadius = 10;
    self.imageViewTwo.clipsToBounds = YES;
    
    self.buttonTwo = [UIButton buttonWithType:UIButtonTypeSystem];
    [self.bigView addSubview:self.buttonTwo];
    self.buttonTwo.frame = CGRectMake(self.bigView.frame.size.width/3+15, 270, self.bigView.frame.size.width/3-40, 80);
//    self.buttonTwo.backgroundColor = [UIColor blueColor];
    
    
    
    
    self.labelTwo = [[UILabel alloc] initWithFrame:CGRectMake(self.bigView.frame.size.width/3+15, 270+self.bigView.frame.size.width/3-40, self.bigView.frame.size.width/3-40, 15)];
    self.labelTwo.font = [UIFont systemFontOfSize:13];
    [self.bigView addSubview:self.labelTwo];
    [_labelTwo release];
    
    
    
    self.imageViewThree = [[UIImageView alloc] initWithFrame:CGRectMake((self.bigView.frame.size.width/3)*2+15, 270, self.bigView.frame.size.width/3-40, self.bigView.frame.size.width/3-40)];
    [self.bigView addSubview:self.imageViewThree];
    [_imageViewThree release];
//    self.imageViewThree.layer.cornerRadius = 10;
    self.imageViewThree.clipsToBounds = YES;
    self.labelThree = [[UILabel alloc] initWithFrame:CGRectMake((self.bigView.frame.size.width/3)*2+15, 270+self.bigView.frame.size.width/3-40, self.bigView.frame.size.width/3-40, 15)];
    self.labelThree.font = [UIFont systemFontOfSize:13];
    [self.bigView addSubview:self.labelThree];
    [_labelThree release];
 
    self.buttonThree = [UIButton buttonWithType:UIButtonTypeSystem];
    [self.bigView addSubview:self.buttonThree];
    self.buttonThree.frame = CGRectMake((self.bigView.frame.size.width/3)*2+15, 270, self.bigView.frame.size.width/3-40, 80);
//    self.buttonThree.backgroundColor = [UIColor blueColor];
    
    
    
    
    
    
}

- (void)dealloc
{
    [_bigView release];
    [super dealloc];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
